package org.linlinjava.litemall.db.dao;

import java.util.List;

import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Param;
import org.linlinjava.litemall.db.domain.LitemallGoodsAccessory;
import org.linlinjava.litemall.db.domain.LitemallGoodsAccessoryExample;

public interface LitemallGoodsAccessoryMapper extends MPJBaseMapper<LitemallGoodsAccessory> {
    long countByExample(LitemallGoodsAccessoryExample example);

    int deleteByExample(LitemallGoodsAccessoryExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(LitemallGoodsAccessory record);

    int insertSelective(LitemallGoodsAccessory record);

    LitemallGoodsAccessory selectOneByExample(LitemallGoodsAccessoryExample example);

    LitemallGoodsAccessory selectOneByExampleSelective(@Param("example") LitemallGoodsAccessoryExample example, @Param("selective") LitemallGoodsAccessory.Column ... selective);

    List<LitemallGoodsAccessory> selectByExampleSelective(@Param("example") LitemallGoodsAccessoryExample example, @Param("selective") LitemallGoodsAccessory.Column ... selective);

    List<LitemallGoodsAccessory> selectByExample(LitemallGoodsAccessoryExample example);

    LitemallGoodsAccessory selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallGoodsAccessory.Column ... selective);

    LitemallGoodsAccessory selectByPrimaryKey(Integer id);

    LitemallGoodsAccessory selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") LitemallGoodsAccessory record, @Param("example") LitemallGoodsAccessoryExample example);

    int updateByExample(@Param("record") LitemallGoodsAccessory record, @Param("example") LitemallGoodsAccessoryExample example);

    int updateByPrimaryKeySelective(LitemallGoodsAccessory record);

    int updateByPrimaryKey(LitemallGoodsAccessory record);

    int logicalDeleteByExample(@Param("example") LitemallGoodsAccessoryExample example);

    int logicalDeleteByPrimaryKey(Integer id);
}
